package com.apiit.webserviceclient.activities;

import com.apiit.webserviceclient.R;
import com.apiit.webserviceclient.R.layout;
import com.apiit.webserviceclient.R.menu;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.widget.Button;
import android.widget.TextView;

public class ViewPSF extends Activity {
	
	TextView background;
	TextView objectives;
	TextView resources;
	TextView research;
	TextView plan;
	TextView testPlan;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_view_psf);
		
		background = (TextView) findViewById(R.id.editPsfBackground);
		objectives = (TextView) findViewById(R.id.editPsfObjectives);
		resources = (TextView) findViewById(R.id.editPsfResourceNeeded);
		research = (TextView) findViewById(R.id.editPsfResearchAreas);
		plan = (TextView) findViewById(R.id.editPsfPlan);
		testPlan = (TextView) findViewById(R.id.editPsfTestPlan);
		
		Intent intename = getIntent();
		String backgroundValue = intename.getStringExtra("background");
		String objectivesValue = intename.getStringExtra("objectives");
		String resourcesValue = intename.getStringExtra("resources");
		String researchValue = intename.getStringExtra("research");
		String planValue = intename.getStringExtra("plan");
		String testPlanValue = intename.getStringExtra("testPlan");
		
		background.setText(backgroundValue);
		objectives.setText(objectivesValue);
		resources.setText(resourcesValue);
		research.setText(researchValue);
		plan.setText(planValue);
		testPlan.setText(testPlanValue);
		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.view, menu);
		return true;
	}

}
